﻿<phone:PhoneApplicationPage x:Class="nyxwin.Main.View.LoginPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="480"
                            d:DesignHeight="696" FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}"
                            SupportedOrientations="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="True"
                            Loaded="PhoneApplicationPageLoaded">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <TextBlock x:Name="ApplicationTitle" Text="NYX.CZ" Grid.Row="0" Margin="12,17,0,28"
               Style="{StaticResource PhoneTextNormalStyle}" />

        <StackPanel Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Text="User name :" Margin="12,0,12,0" />
            <TextBox x:Name="textBoxUserName" />
            <Button x:Name="buttonRequestAuthorization" Content="Request authorization token" Click="ButtonRequestAuthorization_OnClick" />
            <TextBlock Text="Token :" Margin="12,0,12,0" />
            <TextBox x:Name="textBoxToken" />
            <TextBlock x:Name="textBoxStatus" />
            <TextBlock x:Name="textBoxComment" TextWrapping="Wrap" />
        </StackPanel>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton IconUri="Icons/appbar.check.rest.png" Text="Login"
                                      Click="ButtonLogin_OnClick" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


</phone:PhoneApplicationPage>